import { Inject, Controller, Get, Query } from '@midwayjs/decorator';
import { Context } from '@midwayjs/koa';
import { NovelService } from 'src/service/novel.service';


@Controller('/api')
export class APIController {
  @Inject()
  ctx: Context;

  @Inject()
  NovelService: NovelService;

  @Get('/getnovel')
  async getnovel(@Query('uid') uid) {
     return  this.NovelService.getNovel({ id:1 })
  }
  @Get('/getnovelitem')
  async getnovelitem(@Query('uid') uid) {
     return  this.NovelService.getNovelitem({ id:1 })
  }
}
